<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/module/jeDate/jedate.css"/>
    <%include("/app/resapi/style.html"){}%>
    <style type="text/css">
        #myTable tr td {
            vertical-align: middle;
        }

        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: hidden;">
<div class="page-body" style="padding: 0px;height: 100%;">
    <div class="main-container container-fluid" style="height: 100%;">
        <div class="page-container" style="height: 100%;">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px;height: 100%;">
                <div class="col-md-3 col-sm-3 col-xs-12" style="padding: 0px;height: 100%;">
                    <div class="widget" style="padding: 0px;height: 100%;">
                        <div class="widget-header bordered-bottom bordered-themeprimary">
                            <i class="widget-icon fa fa-tasks themeprimary"></i> <span class="widget-caption themeprimary">预算项目列表</span>
                        </div>
                        <!--Widget Header-->
                        <div class="widget-body" style="padding: 0px;height: 100%;overflow-y: auto;">
                            <ul id="tree" class="ztree"></ul>
                        </div>
                        <!--Widget Body-->
                    </div>
                </div>
                <div class="col-md-9 col-sm-9 col-xs-12" style="padding: 0px;height: 100%;overflow:auto;">
                    <div style="display: none" id="editdiv">
                        <div class="tab-content tabs-flat" style="padding: 0px;">
                            <form class="form-horizontal" id="form1">
                                <table class="table table-hover table-striped table-bordered">
                                    <tr>
                                        <td width="20%">${i18n('system.sortNo')}：</td>
                                        <td width="30%"><input placeholder="${i18n('system.sortNo')}" type="number" name="sortNo" id="sortNo" maxlength="50" value="" class="form-control"></td>
                                        <td width="20%">项目类型：</td>
                                        <td width="30%"><select name="projectType" id="projectType" class="form-control"></select></td>
                                    </tr>
                                    <tr>
                                        <td width="20%">项目标题:</td>
                                        <td><input placeholder="项目标题" type="text" name="title" id="title" maxlength="50" class="form-control"></td>
                                        <td width="20%">项目编号:</td>
                                        <td><input placeholder="项目编号" type="text" name="projectCode" id="projectCode" maxlength="50" class="form-control"></td>
                                    </tr>
                                    <tr>
                                        <td width="20%">项目负责人：</td>
                                        <td width="30%"><input placeholder="项目负责人" type="text" name="chargeUser" id="chargeUser" class="form-control" readonly="readonly" opt-id="chargeUser"
                                                               onclick="selectUser(this,'false');"></td>
                                        <td width="20%">预算总费用：</td>
                                        <td width="30%"><input placeholder="预算总费用" type="number" id="totalCost" name="totalCost" class="form-control"></td>
                                    </tr>
                                    <tr>
                                        <td width="20%">项目参与人：</td>
                                        <td width="50%" colspan="2"><textarea placeholder="项目参与人" name="joinUser" id="joinUser" class="form-control" readonly="readonly" row="5"></textarea></td>
                                        <td>
                                            <a opt-id="joinUser" onclick="selectUser(this,'true');" style="cursor: pointer;margin-right: 10px">${i18n('system.select')}</a>
                                            <a style="cursor: pointer;" onclick="clearSelect('joinUser')">${i18n('system.clear')}</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="20%">项目周期：</td>
                                        <td width="80%" colspan="3"><input style="display: inline-block; width: 200px; margin-right: 10px" placeholder="开始时间" type="text" name="beginTime" id="beginTime" class="form-control"
                                                                           readonly="readonly"> <span style="display: inline-block;">-</span> <input style="display: inline-block; width: 200px; margin-left: 10px" placeholder="${i18n('system.endTime')}" type="text"
                                                                                                                                                     name="endTime" id="endTime" class="form-control" readonly="readonly"></td>
                                    </tr>
                                    <tr>
                                        <td width="20%">资金出处：</td>
                                        <td width="30%"><input placeholder="资金出处" type="text" name="cashFrom" id="cashFrom" class="form-control"></td>
                                        <td width="20%">所属科目：</td>
                                        <td width="30%"><input placeholder="所属科目" type="text" id="budgetAccount" name="budgetAccount" class="form-control" readonly="readonly">
                                            <div id="menuContent" class="menuContent">
                                                <ul id="menuTree" class="ztree"></ul>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="20%">相关附件：</td>
                                        <td width="80%" colspan="3">
                                            <div id="show_attach"></div>
                                            <a class="addfile" href="javascript:void(0)">${i18n('fileupload')} <input data_value="" type="file" onchange="fileUpLoad('budget','attach');" hidefocus="true" maxlength="1"
                                                                                                                      id="attach" name="attach" class="addfile" multiple="multiple"></a> <a class="addfile" style="width: 200px;" href="#" op_id="attach" onclick="selectattach(this,'true')">${i18n('system.netFileSelect')}</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">备注</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <div id="remark" name="remark" style="height: 300px"></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="center"><a id="createbut" href="javascript:void(0);" class="btn btn-primary js-update-save">更&nbsp;&nbsp;新</a> <a href="javascript:void(0);"
                                                                                                                                                                                 class="btn btn-purple js-back-btn" style="margin-left: 20px;">返&nbsp;&nbsp;回</a></td>
                                    </tr>
                                </table>
                            </form>
                        </div>
                    </div>
                    <div class="widget-body" style="padding:0px;" id="listdiv">
                        <div class="widget-header bg-themeprimary">
                            <span class="widget-caption">子项目列表</span>
                        </div>
                        <table id="myTable"></table>
                        <div class="well well-lg" id="tipdiv">
                            <h4 class="block">友情提醒</h4>
                            <p>请选择左侧项目操作</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade bs-example-modal-lg" id="childProjectModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myLargeModalLabel">添加子项目</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-bordered" role="form" id="form2">
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">${i18n('system.sortNo')}：</label>
                        <div class="col-sm-9">
                            <input type="number" class="form-control" name="childSortNo" id="childSortNo" placeholder="${i18n('system.sortNo')}"> <input type="hidden" class="form-control" name="dbSourceId" id="dbSourceId" placeholder="${i18n('system.sortNo')}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">子顼目名称：</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="childTitle" name="childTitle" placeholder="子顼目名称">
                        </div>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('cancel')}</button>
                <button type="button" class="btn btn-primary js-save">${i18n('save')}</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<div id="orgselectdiv"></div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table-${localeLangCountry()}.js"></script>
<script type="text/javascript" src="/module/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/module/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="/module/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/attachselect.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/budget/project/upbudget.js"></script>
</html>
